import { routes } from './routes';
import { BrowserRouter as Router, Routes } from 'react-router-dom';
// import PublicRoute from "routers/PublicRoute";
import { createRoute } from 'routers/createRoute';

const RouterWrapper = () => (
  <Router>
    <Routes>{createRoute(routes)}</Routes>
  </Router>
);

export default RouterWrapper;
